﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLCMS.Data.Model;
using NHibernate;
using DotNet.Common.NHibernateUtil;
using ZLCMS.Web.Wap.Code;

namespace ZLCMS.Web.MemberUser
{
    public partial class ChgUserPhoto : WebMemberPageBase
    {
        protected MemberInfo _memberDb;

        protected void Page_Load(object sender, EventArgs e)
        {
            _memberDb = Master.LoadMember();
            MemberCategory1.MenuIndex = "xgtx";
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            using (ISession session = SessionFactoryHelper.CreateSession())
            {
                _memberDb.PhotoUrl=hid_img.Value;
                session.Update(_memberDb);
                session.Flush();
            }
        }
    }
}